home *** CD-ROM | disk | FTP | other *** search
- /* structs.h -- Basic data structures
- This file is part of Paperboy, an offline mail/newsreader for Windows
- Copyright (C) 1995 Michael H. Vartanian
- vart@clark.net
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- */
- /* Basic data structures for Paperboy SOUP DLL */
-
- #ifndef HSTRUCTS
- #define HSTRUCTS
-
- #include <time.h>
-
- #define MSGMAGIC 0xDEDEDEDEL
- #define AREAMAGIC 0xBABABABAL
-
- struct lltext
- {
- struct lltext * next; /* Pointer to next element in linked-list */
- char * text; /* Line of text */
- };
-
-
-
- struct llmsg
- {
- struct llmsg * next; /* Pointer to next element in linked-list */
- long magic; /* Sanity check magic number */
- long start; /* Position in file of start */
- long length; /* Length of message */
- char * subject; /* Subject of message */
- char * author; /* Author of message */
- char * date; /* Date message was posted */
- char * msgid; /* Message-ID */
- time_t idate; /* Date in machine form */
- time_t thread_idate; /* Earliest date in thread */
- int hasseen; /* Message has been seen? */
- };
-
- struct llareas
- {
- struct llareas * next; /* Pointer to next element in linked-list */
- long magic; /* Sanity check magic number */
- char * name; /* Name of area */
- char * prefix; /* Name of .MSG file containing messages */
- char encoding[4]; /* Encoding of message area */
- char * desc; /* Description of message areas */
- struct llmsg * head; /* Top of messages list for this area */
- int isfolder; /* Is this a folder? */
- };
-
- #endif
-